<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			  var ua = window.navigator.userAgent.toLowerCase();
			  //通过正则表达式匹配ua中是否含有MicroMessenger字符串,为微信环境
			  if(ua.match(/MicroMessenger/i) == 'micromessenger'){
				  alert("请选择右上角：在默认浏览器中打开")
			  }else{
				  var elink = document.createElement('a');
				      
				  elink.download = "12313";
				  elink.style.display = 'none';
				   
				  var blob = new Blob(['wqejqenqjkewqeq']);
				  elink.href = URL.createObjectURL(blob);
				  
				  document.body.appendChild(elink);
				  elink.click();
				   
				  //释放blob URL对象
				  URL.revokeObjectURL(elink.href)
				  document.body.removeChild(elink);
			  }
		</script>
	</body>
</html>
